import request from '@/utils/request'

export function getStrategClsses() {
  return request({
    url: '/api/strategy/classes',
    method: 'get'
  })
}

export function getStrategClsParams(clsName) {
  return request({
    url: '/api/strategy/clsParams',
    method: 'get',
    params: {
      name: clsName
    }
  })
}

export function postInitStrategy(data) {
  return request({
    url: '/api/strategy/init',
    method: 'post',
    data: JSON.stringify(data)
  })
}

